package com.hxz.admin.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.hxz.entity.ArticleComment;

@Mapper
public interface AdminCommentsMapper {
	
	@Select("SELECT * FROM articlecomments ORDER BY createTime DESC")
	List<ArticleComment> getCommentList();
	
	@Delete("DELETE FROM articlecomments where id = #{id}")
	Integer deleteCommentById(Integer id);

}
